import updateManager from './common/updateManager';
import {
    init
} from '@cloudbase/wx-cloud-client-sdk';

wx.cloud.init({
    env: 'your-env-id', // 指定云开发环境 ID
});

const client = init(wx.cloud);
const models = client.models;
globalThis.dataModel = models;
// 接下来就可以调用 models 上的数据模型增删改查等方法了

App({
    onLaunch: function () {
        this.globalData = {
            userInfo: null,
            token: '',
            WX_CODE: ''
        };
    },
    onShow: function () {
        updateManager();
    },
    globalData: {
        userInfo: null,
        token: '',
        WX_CODE: ''
    }
});